package com.app.brilliant.system.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.app.brilliant.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "定时任务对象", description = "定时任务")
public class ScheduleJobLog  extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId
    private Long logId;

    @ApiModelProperty(value = "定时任务id")
    @NotBlank(message = "定时id")
    private Long jobId;

    @ApiModelProperty(value = "定时任务bean名称")
    @NotBlank(message = "定时任务bean名称不能为空")
    private String beanName;

    @ApiModelProperty(value = "定时任务方法名称")
    @NotBlank(message = "定时任务方法名称不能为空")
    private String methodName;

    @ApiModelProperty(value = "参数名称")
    @NotBlank(message = "参数名称不能为空")
    private String params;

    @ApiModelProperty(value = "状态")
    @NotBlank(message = "状态不能为空")
    private Byte status;

    @ApiModelProperty(value = "错误内容")
    @NotBlank(message = "错误内容不能为空")
    private String error;

    @ApiModelProperty(value = "耗时")
    @NotBlank(message = "耗时不能为空")
    private Long times;

    @ApiModelProperty(value = "创建时间")
    @NotBlank(message = "创建时间不能为空")
    private Date createTime;
}
